
function checkInteger()
{
int = document.getElementById("integer");

if (int.value !="")
	{
	if(isNaN(int.value) == true)
	{
		alert("Integer only");
		document.getElementById("integer").value="";
	}
	}

}

function getVar (nomVariable) 
{ 
    var infos = location.href.substring(location.href.indexOf("?")+1, location.href.length)+"&" 
    if (infos.indexOf("#")!=-1) 
        infos = infos.substring(0,infos.indexOf("#"))+"&" 
    var variable=0 
    { 
        nomVariable = nomVariable + "=" 
        var taille = nomVariable.length 
        if (infos.indexOf(nomVariable)!=-1) 
            variable = infos.substring(infos.indexOf(nomVariable)+taille,infos.length).substring(0,infos.substring(infos.indexOf(nomVariable)+taille,infos.length).indexOf("&")) 
    } 
    return variable 
} 

var layer_encour; // ID du layer visible en cour

function swapLayers(id) {
if (layer_encour) hideLayer(layer_encour);
showLayer(id);
layer_encour = id;
//alert(id);
}

function showLayer(id) {
var layer = getElemRefs(id);
layer.style.visibility = "visible";
//alert(id);
}

function hideLayer(id) {
var layer = getElemRefs(id);
layer.style.visibility = "hidden";
//alert(id);
}

function getElemRefs(id) {
var elmt = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
if (elmt) elmt.css = (elmt.style)? elmt.style: elmt;
return elmt;
}





